home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / island_fishing.swf / scripts / frame_183 / PlaceObject2_226_45 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2011-01-13  |  2KB  |  61 lines

  1. onClipEvent(enterFrame){
  2.    if(this.canmove <= 0)
  3.    {
  4.       this._x = _root.hook._x;
  5.       this._y = _root.hook._y;
  6.    }
  7.    if(this.hitTest(_root.rodend))
  8.    {
  9.       unloadMovie(this);
  10.       _root.guy.head.gotoAndPlay("shiver");
  11.       _root.scorepopup.score.text = "-5";
  12.       _root.scorepopup.play();
  13.       _root.score--;
  14.       _root.score--;
  15.       _root.score--;
  16.       _root.score--;
  17.       _root.score--;
  18.    }
  19.    if(this.hitTest(_root.hook))
  20.    {
  21.       if(_root.f1.hooked <= 0)
  22.       {
  23.          if(_root.f2.hooked <= 0)
  24.          {
  25.             if(_root.f3.hooked <= 0)
  26.             {
  27.                if(_root.f4.hooked <= 0)
  28.                {
  29.                   if(_root.f5.hooked <= 0)
  30.                   {
  31.                      if(_root.f7.hooked <= 0)
  32.                      {
  33.                         if(_root.f9.hooked <= 0)
  34.                         {
  35.                            if(_root.f10.hooked <= 0)
  36.                            {
  37.                               _root.guy.gotoAndStop(2);
  38.                               this.canmove = 0;
  39.                               this.hooked = 1;
  40.                               this._x = _root.hook._x;
  41.                               this._y = _root.hook._y;
  42.                            }
  43.                            else
  44.                            {
  45.                               this.canmove = 1;
  46.                               this.hooked = 0;
  47.                               if(this._y < 160)
  48.                               {
  49.                                  this._y = 180;
  50.                               }
  51.                            }
  52.                         }
  53.                      }
  54.                   }
  55.                }
  56.             }
  57.          }
  58.       }
  59.    }
  60. }
  61.